package demo.config;

import java.util.HashMap;
import java.util.Map;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

import demo.bean.PropertyBean2;

@Configuration
public class PropBeanConfig  {
	
	

	@Bean("map1")
	public Map map1(Environment environment,PropertyBean2 properBean2){
		System.out.println("properBean2="+properBean2+"\n\n\n");
		
		
	    return new HashMap();
	}
	
	@Bean("map2")
	public Map map2(Environment environment,PropertyBean2 properBean2){
		
		System.out.println("properBean2="+properBean2+"\n\n\n");

		
	    return new HashMap();
	}
	
	


}